package(default_visibility = ["//:__subpackages__"])

licenses(["notice"])

java_library(
    name = "cli_util",
    testonly = 1,
    srcs = [
        "java/com/google/crypto/tink/testing/CliUtil.java",
    ],
    deps = [
        "@tink_java//src/main/java/com/google/crypto/tink:binary_keyset_reader",
        "@tink_java//src/main/java/com/google/crypto/tink:binary_keyset_writer",
        "@tink_java//src/main/java/com/google/crypto/tink:cleartext_keyset_handle",
        "@tink_java//src/main/java/com/google/crypto/tink:registry_cluster",
        "@tink_java//src/main/java/com/google/crypto/tink/config:tink_config",
        "@tink_java//src/main/java/com/google/crypto/tink/daead:deterministic_aead_config",
        "@tink_java//src/main/java/com/google/crypto/tink/hybrid:hybrid_config",
        "@tink_java//src/main/java/com/google/crypto/tink/prf:prf_config",
        "@tink_java//src/main/java/com/google/crypto/tink/signature:signature_config",
        "@tink_java//src/main/java/com/google/crypto/tink/streamingaead:streaming_aead_config",
    ],
)

java_library(
    name = "compare_keysets",
    testonly = 1,
    srcs = ["java/com/google/crypto/tink/testing/CompareKeysets.java"],
    deps = [
        "@tink_java//proto:tink_java_proto",
        "@tink_java//src/main/java/com/google/crypto/tink:privileged_registry",
    ],
)

java_binary(
    name = "aead_cli_java",
    testonly = 1,
    srcs = [
        "java/com/google/crypto/tink/testing/AeadCli.java",
    ],
    main_class = "com.google.crypto.tink.testing.AeadCli",
    deps = [
        ":cli_util",
        "@tink_java//src/main/java/com/google/crypto/tink:aead",
        "@tink_java//src/main/java/com/google/crypto/tink:registry_cluster",
        "@tink_java//src/main/java/com/google/crypto/tink/aead:aead_config",
        "@tink_java//src/main/java/com/google/crypto/tink/integration/awskms:aws_kms_client",
        "@tink_java//src/main/java/com/google/crypto/tink/integration/gcpkms:gcp_kms_client",
        "@tink_java//src/main/java/com/google/crypto/tink/testing:test_util",
    ],
)
